/* eslint-disable no-shadow */
export const state = () => ({
  barHeight: 0,
  topClass: '', // layouts 的顶层class类，方便设置整个页面的顶层样式
});

export const mutations = {
  setBarHeight(state, barHeight) {
    state.barHeight = barHeight;
  },
  setTopClass(state, topClass) {
    state.topClass = topClass;
  },
};
